<template>
  <div class="tai-title">
    <div class="tai-main">
      <div class="tai-chapter"></div>
      <div class="mr10">{{ title }}</div>
      <slot></slot>
    </div>
    <div>
      <slot name="append"></slot>
    </div>
  </div>
</template>
<script setup name="TaiTitle">
const props = defineProps({
  title: {
    type: String,
    default: ''
  }
})
</script>

<style lang="scss" scoped>
.tai-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  .tai-main {
    display: flex;
    align-items: center;
  }
  .tai-chapter {
    height: 20px;
    width: 4px;
    border-radius: 2px;
    margin-right: 8px;
    background-color: var(--el-color-primary);
  }
}
</style>